<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<body>
	<h:form id="countryForm">
		<p:dataGrid var="country" value="#{myBean.countries}" columns="6"
			rows="20">
			<p:column>
				<p:panel header="#{country.name}" style="text-align:center">
					<p:commandLink ajax="false"
						action="/view1.xhtml?javax.portlet.faces.PortletMode=view&amp;javax.portlet.faces.WindowState=normal">
						<f:setPropertyActionListener value="#{country.code}"
							target="#{myBean.selectedCountry}" />
						<p:graphicImage value="/images/flags/#{country.code}.png"
							style="text-align:center" />
					</p:commandLink>
				</p:panel>
			</p:column>
		</p:dataGrid>
	</h:form>
</body>
</html>